package cn.antho.product.service;

import cn.antho.product.domain.Product;
import cn.antho.basic.service.IBaseService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author antho
 * @since 2022-11-03
 */
public interface IProductService extends IBaseService<Product> {

    Product getProductDetail(Long id);

    void onsale(List<Long> ids, HttpServletRequest request) throws Exception;

    void offsale(List<Long> ids);

    void add(Product product);
}
